{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/api_version/index')}">API版本管理</a></li>
            <li class=""><a href="{:url('admin/api_version/add')}">添加API版本</a></li>
            <li class="layui-this">编辑API版本</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/api_version/update')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">版本名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" value="{$api_version.name}" required  lay-verify="required" placeholder="请输入API版本名称" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">版本描述</label>
                        <div class="layui-input-block">
                            <input type="text" name="description" value="{$api_version.description}" placeholder="（选填）请输入API版本描述" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="hidden" name="id" value="{$api_version.id}">
                            <button class="layui-btn" lay-submit lay-filter="*">更新</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}